home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8" ?>
- <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
- <stack>
- <name>in</name>
- <id>-1</id>
- <cardCount>7</cardCount>
- <cardID>10358</cardID>
- <listID>4177</listID>
- <cantModify><false /></cantModify>
- <cantDelete><false /></cantDelete>
- <cantAbort><false /></cantAbort>
- <cardSize>
- <width>512</width>
- <height>342</height>
- </cardSize>
- <script>on initFields
- end initFields
-
- on lookForInput
- end lookForInput
-
- on openStack
- global online
- push recent card
- showCount
- end openStack
-
- on showCount
- show msg at 22,20
- put "UserList: " & the number of cards & " user records in stack."
- end showCount
-
- on newCard
- showCount
- end newCard
-
- -- The following command deletes all card to the end of the stack.
- -- You can use it to prune the UserList after sorting by last logon
- -- and going to the oldest user you want to keep. Use it carefully,
- -- tho, or you may delete your entire UserList...
- --
- on deleteToEnd
- repeat while the number of this card is not 1
- doMenu "delete card"
- end repeat
- end deleteToEnd
-
- function nameToID userName
- put empty into it
- put it into userID
- if userName is not empty then
- get lockScreen
- put it into oldLock
- set lockScreen to true
- push card
- go to stack "UserList"
- find word userName in field "name"
- if it is not "not found" then
- put "x" into userID
- put the ID of this card into firstID
- repeat while field "name" is not userName
- go to next card
- find word userName in field "name"
- if the ID of this card is firstID then
- put empty into userID
- exit repeat
- end if
- end repeat
- end if
- if userID is not empty then put the ID of this card into userID
- pop card
- set lockScreen to oldLock
- end if
- return userID
- end nameToID
-
- function getUserInfo userID,infoType
- get lockScreen
- put it into oldLock
- set lockScreen to true
- push card
- go to stack "UserList"
- do "put field " & infoType & " in " & userID & " into it"
- pop card
- set lockScreen to oldLock
- return it
- end getUserInfo
- </script>
- <background id="2635" file="background_2635.xml" name="" />
- <card id="10358" file="card_10358.xml" marked="false" name="" owner="2635" />
- <card id="2129" file="card_2129.xml" marked="false" name="" owner="2635" />
- <card id="5733" file="card_5733.xml" marked="false" name="" owner="2635" />
- <card id="6094" file="card_6094.xml" marked="false" name="" owner="2635" />
- <card id="9040" file="card_9040.xml" marked="false" name="" owner="2635" />
- <card id="4086" file="card_4086.xml" marked="false" name="" owner="2635" />
- <card id="3049" file="card_3049.xml" marked="false" name="" owner="2635" />
- </stack>
-